package com.weather.data.entity.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 天擎-接口信息
 * </p>
 *
 * @author baomidou
 * @since 2024-12-24
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("weather_sky_engine")
@Schema(name = "SkyEngine", description = "天擎-接口信息")
public class SkyEngine extends Model<SkyEngine> {

    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "名称")
    @TableField("name")
    private String name;

    @Schema(description = "请求地址")
    @TableField("url")
    private String url;

    @Schema(description = "类型")
    @TableField("type")
    private String type;

    @Schema(description = "接口id")
    @TableField("interface_id")
    private String interfaceId;

    @Schema(description = "数据代码")
    @TableField("data_code")
    private String dataCode;

    @Schema(description = "服务节点id")
    @TableField("service_node_id")
    private String serviceNodeId;

    @Schema(description = "接口名称")
    @TableField("interface_name")
    private String interfaceName;

    @Schema(description = "数据名称")
    @TableField("data_name")
    private String dataName;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
